package com.chushouya.product.dto.admin.product.evaluate;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

@Data
@ApiModel("组合估价添加")
public class SkuEvaluateComboAddDTO {

    @ApiModelProperty(value = "组合名称", required = true)
    @NotBlank(message = "组合名称不能为空")
    private String comboName;

    @ApiModelProperty(value = "skuId", required = true)
    @NotNull(message = "skuId不能为空")
    private Long skuId;

    @ApiModelProperty(value = "组合估价选项id", required = true)
    @NotEmpty(message = "组合估价选项id不能为空")
    private List<Long> comboValueIds;

    @ApiModelProperty(value = "原扣减金额", required = true)
    @NotNull(message = "原扣减金额不能为空")
    private BigDecimal originalValue;

    @ApiModelProperty(value = "现扣减金额", required = true)
    @NotNull(message = "现扣减金额不能为空")
    private BigDecimal targetValue;

    @ApiModelProperty(value = "计算方式", required = true)
    @NotNull(message = "计算方式不能为空")
    private Integer calcType;

}
